//
//  ILRNICommonUtils.h
//  CMKit_Example
//
//  Created by OrrHsiao on 2022/3/28.
//  Copyright © 2022 zrf. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ILRNICommonUtils : NSObject

/// 判断对象是否为空
/// @param obj <#obj description#>
+ (BOOL)isEmpty:(id)obj;

//NSDictionary转成json字符串
+ (NSString *)map2Json:(NSDictionary *)dict;

//json字符串转成NSDictionary
+ (NSDictionary *)json2Map:(NSString *)jsonString;

//json字符串转成NSDictionary/NSArray
+ (id)json2Obj:(NSString *)jsonString;

//NSDictionary/NSArray转成json字符串
+ (NSString *)obj2Json:(id)obj;

//沙盒Document路径
+ (NSString *)sandboxDocumentPath;

//拍照权限
+ (void)checkCameraPermission:(void (^)(BOOL hasPermission))callback;

//相册权限
+ (void)checkPhotoAlbumPermission:(void (^)(BOOL hasPermission))callback;

//麦克风权限
+ (void)checkMicPermission:(void (^)(BOOL hasPermission))callback;

//定位权限
+ (void)checkLocationPermission:(void (^)(BOOL hasPermission))callback;

+ (NSString *)boolString:(BOOL)bol;

@end

NS_ASSUME_NONNULL_END
